Telegram Group & Telegram Channel
#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/44
Create:
Last Update:

#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/44

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

Can I mute a Telegram group?

In recent times, Telegram has gained a lot of popularity because of the controversy over WhatsApp’s new privacy policy. In January 2021, Telegram was the most downloaded app worldwide and crossed 500 million monthly active users. And with so many active users on the app, people might get messages in bulk from a group or a channel that can be a little irritating. So to get rid of the same, you can mute groups, chats, and channels on Telegram just like WhatsApp. You can mute notifications for one hour, eight hours, or two days, or you can disable notifications forever.

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

Micropython & IOT from sa


Telegram Micropython & IOT
FROM USA